package math

func Div[T digit](a, b T, digits ...int64) float64 {
	if b == 0 {
		return 0
	}

	_a := float64(a)
	_b := float64(b)

	return Round(_a/_b, digits...)
}
